<script>
export default {
  name: 'Input',
  props: {
    value: {
      type: String,
      default: ''
    }
  },
  methods: {
    onInput(value) {
      this.$emit('input', value)
    }
  }
}
</script>

<template>
  <el-input v-bind="$attrs" :value="value" @input="onInput"></el-input>
</template>
<style scoped lang="scss">
.el-input {
  width: 200px;
  margin-left: 10px;
}
</style>
